package com.maowei.config;

import com.maowei.common.CanalConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * canal配置信息
 * 配置文件前缀canal.xxx
 * @author maowei
 * @date 2021/8/24
 */
@Data
@ConfigurationProperties(prefix = "canal")
public class CanalConfigProperties {

    private String host = CanalConstants.DEFAULT_HOST;

    private Integer port = CanalConstants.DEFAULT_PORT;

    private String destination = CanalConstants.DEFAULT_DESTINATION;

    private String userName = CanalConstants.DEFAULT_USERNAME;

    private String password = CanalConstants.DEFAULT_PASSWORD;

    private Integer batchSize = CanalConstants.DEFAULT_BATCHSIZE;

    private String filter = CanalConstants.DEFAULT_FILTER;

    private Boolean custom = CanalConstants.DEFAULT_CUSTOM;

}
